package com.woddp.test1;
import org.springframework.stereotype.Service;

@Service
public class TestService {
    private  Test1Properties properties;
    public TestService(){}
    public TestService(Test1Properties propertie){
        this.properties=propertie;
    }
    public  void  hello(){
        System.out.println("大家好，我叫: " + properties.getName() + ", 今年" + properties.getAge() + "岁");
    }
}
